package com.ruoyi.project.business.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 租地订单对象 business_area_order
 * 
 * @author ruoyi
 * @date 2020-10-19
 */
public class BusinessAreaOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long id;

    /** 土地Id */
    @Excel(name = "土地Id")
    private Long areaId;

    /** 合同是否同意 */
    @Excel(name = "合同是否同意")
    private Long isAgree;

    /** 租期数量(两季一年 )数量 */
    @Excel(name = "租期数量(两季一年 )数量")
    private Long tenancy;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal amount;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderCode;

    /** 支付状态(0:未支付 1 已支付) */
    @Excel(name = "支付状态(0:未支付 1 已支付)")
    private Long payStatus;

    /** 支付代码 */
    @Excel(name = "支付代码")
    private String transactionId;

    /** 土地的状态 */
    @Excel(name = "土地的状态")
    private String areaStatus;

    /** 1支付宝 2微信 */
    @Excel(name = "1支付宝 2微信")
    private Long payType;
    /** 创建时间 */
    @Excel(name = "到期时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtEnd;
    @Excel(name = "用户Id")
    private Long userId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getGmtEnd() {
        return gmtEnd;
    }

    public void setGmtEnd(Date gmtEnd) {
        this.gmtEnd = gmtEnd;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setIsAgree(Long isAgree) 
    {
        this.isAgree = isAgree;
    }

    public Long getIsAgree() 
    {
        return isAgree;
    }
    public void setTenancy(Long tenancy) 
    {
        this.tenancy = tenancy;
    }

    public Long getTenancy() 
    {
        return tenancy;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setOrderCode(String orderCode) 
    {
        this.orderCode = orderCode;
    }

    public String getOrderCode() 
    {
        return orderCode;
    }
    public void setPayStatus(Long payStatus) 
    {
        this.payStatus = payStatus;
    }

    public Long getPayStatus() 
    {
        return payStatus;
    }
    public void setTransactionId(String transactionId) 
    {
        this.transactionId = transactionId;
    }

    public String getTransactionId() 
    {
        return transactionId;
    }
    public void setAreaStatus(String areaStatus) 
    {
        this.areaStatus = areaStatus;
    }

    public String getAreaStatus() 
    {
        return areaStatus;
    }
    public void setPayType(Long payType) 
    {
        this.payType = payType;
    }

    public Long getPayType() 
    {
        return payType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("areaId", getAreaId())
            .append("isAgree", getIsAgree())
            .append("tenancy", getTenancy())
            .append("amount", getAmount())
            .append("orderCode", getOrderCode())
            .append("payStatus", getPayStatus())
            .append("transactionId", getTransactionId())
            .append("areaStatus", getAreaStatus())
            .append("payType", getPayType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    private String nickname;
    private String landName;

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getLandName() {
        return landName;
    }

    public void setLandName(String landName) {
        this.landName = landName;
    }
}
